import Vue from 'vue'
import Vuex from 'vuex'
import * as actions from './actions'
import * as getters from './getters'
// import createLogger from 'vuex/dist/logger'

// app信息
import appStore from './modules/app.js'
// user用户信息
import userStore from './modules/user.js'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  actions,
  getters,
  modules: {
    appStore,
    userStore
  },
  strict: debug
  // plugins: debug ? [createLogger()] : []
})
